<template>
	<view>
		<view class="common-width90 ml-2 common-text-size mt-2">
			<textarea v-model="content" class="inner-textarea" placeholder-style="color:#888888" placeholder="短视频链接或者口令/直播的链接"
			 :maxlength="-1"></textarea>
			<button class="ml-4 mt-2" type="primary" plain @click="sendWork">发送</button>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad(e) {
			this.orderId = e.orderId;
		},
		data() {
			return {
				content: "",
				orderId: "",
			}
		},
		methods: {
			sendWork() {
				console.log(this.content);
				this.$http({
					url: `/order/commitwork?orderId=${this.orderId}&content=${this.content}`,
					method: "POST"
				}).then(response => {
					console.log(response);
					uni.navigateTo({
						url: "/pages/homechild/chooseorder/chooseorder"
					})
				});
			}
		}
	}
</script>

<style>
	@import url("/static/css/common.css");

	.inner-textarea {
		width: 100%;
		border: #808080 1px solid;
		border-radius: calc(4vw);
		padding: calc(2vw);
	}
</style>
